// 定义状态的原数据，初始化
const state = {
  username: 'Tom',
  age: 18,
  num: 0,
  goods: [
    {
      name: 'iphone',
      price: 8999,
      num: 12
    },
    {
      name: 'huawei',
      price: 6999,
      num: 25
    },
    {
      name: 'xiaomi',
      price: 4799,
      num: 82
    }
  ]
}
export default state